﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooModulesInnerCityLodCastleWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Modules.InnerCity.LodCastle);
			Utils.BeginObjectRegister(type, L, translator, 0, 9, 5, 5);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateLOD", _m_UpdateLOD);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddWallScaleItem", _m_AddWallScaleItem);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWallScale", _m_SetWallScale);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddDecorateItem", _m_AddDecorateItem);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveDecorateItem", _m_RemoveDecorateItem);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllItem", _m_RemoveAllItem);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRoadActiveStatus", _m_SetRoadActiveStatus);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSpawn", _m_OnSpawn);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetToPool", _m_ResetToPool);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "wallActiveStatus", _g_get_wallActiveStatus);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "wallScaleItem", _g_get_wallScaleItem);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "roadActiveStatus", _g_get_roadActiveStatus);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_tile_collide", _g_get_m_tile_collide);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DefaultScaleFactor", _g_get_DefaultScaleFactor);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "wallActiveStatus", _s_set_wallActiveStatus);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "wallScaleItem", _s_set_wallScaleItem);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "roadActiveStatus", _s_set_roadActiveStatus);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_tile_collide", _s_set_m_tile_collide);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "DefaultScaleFactor", _s_set_DefaultScaleFactor);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Modules.InnerCity.LodCastle();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Modules.InnerCity.LodCastle constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Modules.InnerCity.LodCastle();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Modules.InnerCity.LodCastle constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateLOD(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _lod = LuaAPI.xlua_tointeger(L, 2);
                    float _lodPercent = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    gen_to_be_invoked.UpdateLOD( _lod, _lodPercent );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddWallScaleItem(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Modules.InnerCity.CityScaleItem _scaleItem = (Yoozoo.Modules.InnerCity.CityScaleItem)translator.GetObject(L, 2, typeof(Yoozoo.Modules.InnerCity.CityScaleItem));
                    
                    gen_to_be_invoked.AddWallScaleItem( _scaleItem );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetWallScale(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _linerValue = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetWallScale( _linerValue );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddDecorateItem(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Modules.InnerCity.TileCollideItem _dCollideItem = (Yoozoo.Modules.InnerCity.TileCollideItem)translator.GetObject(L, 2, typeof(Yoozoo.Modules.InnerCity.TileCollideItem));
                    
                    gen_to_be_invoked.AddDecorateItem( _dCollideItem );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveDecorateItem(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Modules.InnerCity.TileCollideItem _dCollideItem = (Yoozoo.Modules.InnerCity.TileCollideItem)translator.GetObject(L, 2, typeof(Yoozoo.Modules.InnerCity.TileCollideItem));
                    
                    gen_to_be_invoked.RemoveDecorateItem( _dCollideItem );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveAllItem(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.RemoveAllItem(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetRoadActiveStatus(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _active = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.SetRoadActiveStatus( _active );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnSpawn(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.OnSpawn(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ResetToPool(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ResetToPool(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_wallActiveStatus(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.wallActiveStatus);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_wallScaleItem(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.wallScaleItem);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_roadActiveStatus(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.roadActiveStatus);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_m_tile_collide(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.m_tile_collide);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DefaultScaleFactor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.DefaultScaleFactor);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_wallActiveStatus(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.wallActiveStatus = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_wallScaleItem(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.wallScaleItem = (Yoozoo.Modules.InnerCity.CityScaleItem)translator.GetObject(L, 2, typeof(Yoozoo.Modules.InnerCity.CityScaleItem));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_roadActiveStatus(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.roadActiveStatus = LuaAPI.lua_toboolean(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_m_tile_collide(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.m_tile_collide = (Yoozoo.Modules.InnerCity.TileCollideManager)translator.GetObject(L, 2, typeof(Yoozoo.Modules.InnerCity.TileCollideManager));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DefaultScaleFactor(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.LodCastle gen_to_be_invoked = (Yoozoo.Modules.InnerCity.LodCastle)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.DefaultScaleFactor = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
